package com.itheima.dao;

import com.github.pagehelper.Page;
import com.itheima.pojo.Setmeal;

import java.util.List;
import java.util.Map;

public interface SetmealDao {
    int findCountByCode(String code);

    int findCountByName(String name);

    int add(Setmeal setmeal);

    void addSetmealAndCheckgroup(Map<String, Integer> map);

    Page<Setmeal> findByCondition(String queryString);

    void deleteSetmealAndCheckgroup(Integer id);

    int deleteSetmealById(Integer id);

    List<Setmeal> findAll();

    Setmeal findById(Integer id);

    List<Map<String, Object>> findSetmealCount();
}
